projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1f1687
)
* lisp/emacs-lisp/pcase.el (pcase--u1): Fix bignums
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Thu, 25 Oct 2018 15:19:05 +0000
(11:19 -0400)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Thu, 25 Oct 2018 15:19:05 +0000
(11:19 -0400)
Use 'eql' to compare integers
lisp/emacs-lisp/pcase.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/pcase.el
b/lisp/emacs-lisp/pcase.el
index 4a69244d265b5062435aa90b4ddef9acc47dc236..57c2d6c3cb5e5410a402dc338f6fe02928fb3fa2 100644
(file)
--- a/
lisp/emacs-lisp/pcase.el
+++ b/
lisp/emacs-lisp/pcase.el
@@
-870,7
+870,8
@@
Otherwise, it defers to REST which is a list of branches of the form
(else-rest (cdr splitrest)))
(pcase--if (cond
((null val) `(null ,sym))
- ((or (integerp val) (symbolp val))
+ ((integerp val) `(eql ,sym ,val))
+ ((symbolp val)
(if (pcase--self-quoting-p val)
`(eq ,sym ,val)
`(eq ,sym ',val)))